package com.nec.recommend.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@ApiModel
@Data
@NoArgsConstructor
public class PageEntity {
    @ApiModelProperty("当前页")
    @NotNull(message = "page不能为空")
    private Integer page;
    @ApiModelProperty("每页数量")
    @NotNull(message = "limit不能为空")
    private Integer limit;

    public PageEntity(Integer page, Integer limit) {
        this.page = page;
        this.limit = limit;
    }
}
